#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "Person.h"
#include "Student.h"
#include "Teacher.h"
#include "Observer.h"

using namespace std;

TEST(Observer, assign_leader_who_is_not_klass_member)
{
    Klass klass(2);
    Teacher tom("2", "Tom", 21, {&klass});
    klass.RegisterObserver(tom);
    Student jerry("1", "Jerry", 18, klass);

    klass.AppendMember(jerry);

}
